<%@ page language="java" import="java.util.*,java.text.*" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
	<%!boolean yunn(int year) {
		if (year % 4 == 0 && year % 100 != 0 || year % 400 == 0)
			return true;
		return false;
	}%>
	<%!boolean sushu(int num) {
		for (int i = 2; i <= Math.sqrt(num); i++) {
			if (num % i == 0)
				return false;
		}
		return true;
	}%>
	<%
		for (int i = 2000; i <= 2013; i++) {
			if (yunn(i))
				out.println(i);
		}
	%>
	<%
		int num = 0;
		for (int i = 1; i <= 100; i++) {
			if (sushu(i))
				num = num + i;
		}
		out.println("和为:" + num);
	%>
	<%
		out.println(new Date());
	%>
</body>
</html>